package com.gengzp.rpc.core;

import com.gengzp.rpc.model.dto.remoteTransaction.RemoteTransactionDto;

import java.util.List;

/**
 * @ClassName RemoteTransactionalHandle
 * @Description 远程事务处理器
 * @Author gengzp
 * @Date 2025/8/12 19:44
 */
public interface RemoteTransactionalHandler {

    /**
     * 处理远程事务回滚逻辑
     *
     * @param remoteTransactions 已提交的远程事务方法调用信息集合
     */
    void handleRemoteTransactionCallback(List<RemoteTransactionDto> remoteTransactions);

}
